package bma.common.langutil.jmshell.cmdopt;

/**
 * Thrown when the parsed commandline contains multiple concatenated short
 * options, such as -abcd, where one is unknown. <code>getMessage()</code>
 * returns an english human-readable error string.
 * 
 * @author Vidar Holen
 */
public class UnknownSuboptionException extends UnknownOptionException {

	private static final long serialVersionUID = 1L;

	private char suboption;

	public UnknownSuboptionException(String option, char suboption) {
		super(option, "Illegal option: '" + suboption + "' in '" + option + "'");
		this.suboption = suboption;
	}

	public char getSuboption() {
		return suboption;
	}
}